package com.guigu.service_user.entity.utlis;

import java.util.List;

/**
 * 分页对象
 */
public class PageResult<T> {
    //总记录数
    private Long total;
    //当前页的数据集合
    private List<T> result;

    public PageResult() {
    }

    public PageResult(Long total, List<T> result) {
        this.total = total;
        this.result = result;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }
}
